package model.database;

import model.configuration.ConfigData;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

/**
 * Status of call stored procedure
 * @author Potseluev
 *
 */
@Root(name="callstatus")
public class CallStatus {
	
	// Status Code returned by stored procedure
	@Element(name="statuscode")
	int statusCode = ConfigData.CODEUNDEFINE;
	
	// Status code returned by stored procedure
	@Element(name="statusmessage", required = false)
	String statusMessage = ConfigData.STRINGNOVALUE;
	
	// Returned value
	@Element(name="returnedvalue", required = false)
	Object returnedValue = null;
	
	/**
	 * Returned value
	 * @return
	 */
	public Object getReturnedValue() {
		return returnedValue;
	}

	/**
	 * Set returned value(for test purpose)
	 * @param returnedValue
	 */
	public void setReturnedValue(Object returnedValue) {
		this.returnedValue = returnedValue;
	}

	/**
	 * Get status code
	 * @return
	 */
	public int getStatusCode() {
		return statusCode;
	}
	
	/**
	 * Set status code
	 * @param statusCode
	 */
	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}
	
	/**
	 * Get status message
	 * @return
	 */
	public String getStatusMessage() {
		return statusMessage;
	}
	
	/**
	 * Set status message
	 * @param statusMessage
	 */
	public void setStatusMessage(String statusMessage) {
		this.statusMessage = statusMessage;
	}
	
	
	

}
